package cn.kgc.jdbc;

import cn.kgc.controller.UserController;
import cn.kgc.entity.Usr;

import java.util.Date;

/**
 * @author mosin
 * date 2022/2/11
 * @version 1.0
 *测试分层代码
 */
public class JDBCDemo02 {

    private static UserController  userController = new UserController();
    public static void main(String[] args) {

        Usr usr = Usr.builder().username("lisi").password("1234' or '1'='1").birth(new Date()).createTime(new Date()).build();
        Boolean b = userController.login(usr);
       // Boolean b = userController.register(usr);
        System.out.println("b = " + b);

    }
}
